from todo_api_project.BASE.myBase import Tools
from todo_api_project.API.login_api import login_module


class completeTask_module(Tools):
    path = '/task/info'

    def completeTask_action(self,task_id):
        data = {
            "task_id": task_id
        }
        head = login_module(self.session).get_head()
        res = self.session.put(url=self.hosturl+self.path,json=data,headers=head).json()
        return res
